package cn.xiaohuodui.rest;

import cn.xiaohuodui.vo.PingVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController
@RequestMapping("/v1/pings")
public class PingApi {
    @RequestMapping(method = RequestMethod.GET)
    public PingVo ping() {
        return new PingVo("ping," + LocalDateTime.now());
    }
}
